#ifndef LOGONSERVER_H
#define LOGONSERVER_H

#include <QTcpServer>
#include "handlers/sessionhandler.h"
#include "server/clientsocket.h"

class LogonServer : public QTcpServer
{
    Q_OBJECT
public:
    explicit LogonServer(QObject *parent = 0);
    void start();
    void stop();

signals:
    
public slots:
    void OnPacket(Packets::TLPacket&);
    void clientDisconnected();
protected:
    void incomingConnection(int socketDescriptor);
private:
    QMap<ClientSocket*, Handlers::SessionHandler*> clientConnections;

};

#endif // LOGONSERVER_H
